#pragma once
class CProcessStatus
{
    uint state;
    uint ctrl;
    
public:
    CProcessStatus();
    ~CProcessStatus();
    uint GetState() { return state; };
    uint GetCtrl()  { return ctrl; };
    uint SetState( uint s ) { state = s; return 0; };
    uint SetCtrl( uint c )  { ctrl  = c; return 0; };
    uint IsStopped() { return (ctrl == STOP); };
    uint Done() { return (state == FREE); };
};

